#ifndef DISKCHECKER_H
#define DISKCHECKER_H

#include <QString>

class DiskChecker
{
public:
    enum DiskUsage
    {
        Enough,  // 充足
        Warning, // 达到报警值
        Exhaust, // 耗尽
    };

    /**
     * @brief checkFreeSpace 检查磁盘可用空间
     * @param driver 驱动器路径
     * @return 磁盘使用情况
     */
    static DiskUsage checkFreeSpace(const QString &driver);

private:
    DiskChecker();
    Q_DISABLE_COPY(DiskChecker)
};

#endif // DISKCHECKER_H
